Fix display of R2L lines when the last character fits only partially.
authorEli Zaretskii <eliz@gnu.org>
Fri, 1 Aug 2014 09:39:04 +0000 (12:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 1 Aug 2014 09:39:04 +0000 (12:39 +0300)
commit25e5808a88f6fbb7142cb1d9385eedace22e6729
tree9e899c90807594136e414aeaaf492fee60ca5061
parentb1a275a29f3208133fc771acd83097e76261dc69
Fix display of R2L lines when the last character fits only partially.

 See http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00476.html
 for the details.
 src/xdisp.c (extend_face_to_end_of_line): If the last glyph of an
 R2L row is visible only partially, give the row a negative x
 offset.
 (display_line): Fix the calculation of the glyph whose pixel width
 is used to decide whether the last produced glyph fits on the
 line.  When the last glyph fits only partially, give the row a
 negative x offset.
src/ChangeLog
src/xdisp.c